package main

import (
	"github.com/gofiber/fiber"
	"gowork/planningCalendar/controller"
	_ "gowork/planningCalendar/model"
)

func main()  {

	//w := new(utils.Worker)
	//for i:= 1; i<10; i++{
	//	fmt.Println(w.GetId())
	//}

	//301096597268201472
	//301096597268201473
	//301096597268201474
	//301096597268201475
	//301096597268201476
	//301096597268201477
	//301096597268201478
	//301096597268201479
	//301096597268201480

	//301096788167753728
	//301096788167753729
	//301096788167753730
	//301096788167753731
	//301096788167753732
	//301096788167753733
	//301096788167753734
	//301096788167753735
	//301096788167753736

	cc := new(controller.CalendarController)
	app := fiber.New()

	app.Post("/createNote", cc.CreateNote)
	app.Post("/queryToDayNote", cc.QueryToDayNote)
	app.Post("/queryWeekNote", cc.QueryWeekNote)
	app.Post("/queryWeekNoteAsync", cc.QueryWeekNoteAsync)
	app.Post("/queryMonthNote", cc.QueryMonthNote)
	app.Post("/queryMonthNoteAsync", cc.QueryMonthNoteAsync)
	app.Post("/sendMessag", cc.SendMessage)
	app.Post("/sendMessagAsync", cc.SendMessageAsync)

	app.Listen(2204)
}

